// 如果是微信小程序端
// #ifdef MP-WEIXIN
const clientRect = uni.getMenuButtonBoundingClientRect()
const screenWidth = uni.getSystemInfoSync().screenWidth
// console.log(clientRect);
const height = clientRect.height
const top = clientRect.top
const right = screenWidth - clientRect.right
const width = clientRect.width
const allHeight = top + height + 12
const windowHeight = uni.getSystemInfoSync().windowHeight
const scrollViewHeight = windowHeight - allHeight
// #endif

// 如果是APP端
// #ifdef APP
const statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 12
const height = 32
const top = statusBarHeight
const right = 8
const width = 0
const allHeight = top + height + 12
const windowHeight = uni.getSystemInfoSync().windowHeight
const scrollViewHeight = windowHeight - allHeight
// #endif

// 如果是H5端
// #ifdef H5
const height = 32
const top = 12
const right = 8
const width = 0
const allHeight = top + height + 12
const windowHeight = uni.getSystemInfoSync().windowHeight
const scrollViewHeight = windowHeight - allHeight
// #endif

module.exports = {
    height,
    top,
    right,
    width,
    allHeight,
    scrollViewHeight,
    windowHeight,
}